package com.mes.service.lz;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.lz.BOM2Mapper;
import com.mes.entity.cb.Materiel;
import com.mes.entity.lz.BOM;
import com.mes.entity.lz.ProductUnionMaterial;
/**
 * 
 * @ClassName:BOM2ServiceImp
 * @Description:
 * @Author lz
 * @Date 2018年1月25日 15:58:25
 * @Version 1.0
 */
@Service
@Transactional
public class BOM2ServiceImp implements BOM2Service{

	@Resource
	BOM2Mapper bom2Mapper;
	
	@Override
	public List<ProductUnionMaterial> queryProductUnionMaterial(String mNum) {
		return bom2Mapper.queryProductUnionMaterial(mNum);
	}

	@Override
	public List<Materiel> queryMaterial(String mNum2) {
		return bom2Mapper.queryMaterial(mNum2);
	}
	
	@Override
	public void insertBOM(BOM bomEntity) {
		bom2Mapper.insertBOM(bomEntity);
	}

	@Override
	public List<BOM> queryBOM(String mNum2) {
		return bom2Mapper.queryBOM(mNum2);
	}

	@Override
	public void savaAndUpdate(BOM bomEntity) {
		bom2Mapper.savaAndUpdate(bomEntity);
	}

	@Override
	public List<BOM> queryBOMInfo(String lingliaoOrder) {
		return bom2Mapper.queryBOMInfo(lingliaoOrder);
	}

	@Override
	public String queryJYnowma(String mID) {
		return bom2Mapper.queryJYnowma(mID);
	}
	
}